package com.seecen.letao.mapper.forumMapper;

import com.seecen.letao.pojo.forumPojo.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper //mybatis  mapper注解
@Repository //持久层注解
public interface WriteMapper {

    @Select("select * from t_article")
    List<Article> selectAll();

    @Select("select * from t_article where type=#{type}}")
    List<Article> selectByType();
}
